<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<html>
<head>
    <title>物流签收</title>
</head>
<script>
    function chooseWarhouse() {
        $.dialog({
            content: "url:cbsWarehouseController.do?zyChooseWa",
            zIndex: 2100,
            title: '选择仓库',
            lock: true,
            width: '300px',
            height: '500px',
            left: '85%',
            top: '65%',
            opacity: 0.4,
            init: function () {
                top.myWindow = window;
            },
            button: [{
                name: '确认',
                callback: function () {
                },
                focus: true
            }, {
                name: '返回',
                callback: function () {
                }
            }]
        });
    }
</script>
<body>
<div style="margin-bottom:10px;">
    <img style="margin-bottom:-7px" src="../plug-in/login/images/dispatch bill.png">
    <span class="list-title">BOE12541548764</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <span style="font-size:13px;">状态：<span class="color-red">物流待发货</span></span>
    <div style="position: absolute; text-align: center; width: 100%; margin-top:-20px;">
        <a href="#" class="easyui-linkbutton l-btn">保存</a>
    </div>
</div>

<div class="subtitle">
    <p>关联信息</p>
    <table class="nobordertable noborder">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>服务单号CR:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.crCode}
            </td>
            <td class="al_r" width="20%">
                <label>备件申请单号:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.equipmentApplyId.recordId}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>SR:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.srCode}
            </td>
            <td class="al_r" width="20%">
                <label>SO:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.soCode}
            </td>
        </tr>
        <tr>
			 <td class="al_r" width="20%">
				 <label>发货单类型:</label>
			 </td>
			 <td width="30%">
				 <c:forEach items="${deliverTypeList}" var="tsType">
					 <c:if test="${tsType.typecode==cbsDelinerPage.deliverType}">
						 <label>${tsType.typename}</label>
					 </c:if>
				 </c:forEach>
			 </td>
			 <td class="al_r" width="20%">

			 </td>
			 <td width="30%">

			 </td>
		 </tr>
        </tbody>
    </table>
</div>
<div class="subtitle">
    <p>发货申请</p>
    <table class="ftable">
        <tbody>
        <tr>
            <th>备件类型</th>
            <th>备件号</th>
            <th>数量</th>
            <th>是否返件</th>
            <th>序列号</th>
            <th>二维码</th>
            <th>仓库</th>
            <th>库位</th>
            <th>物流单号</th>
            <th>重量</th>
        </tr>
<c:forEach items="${deliverEquipmentList}" var="deliverEquipment">
        <tr>
            <td>${deliverEquipment.typeDes.typeDesc}</td>
            <td>
                    ${deliverEquipment.itemId.typeDesc}
            </td>
            <td>${deliverEquipment.total}</td>
            <td>
                <c:if test="${deliverEquipment.isReturn==2}">是</c:if>
                <c:if test="${deliverEquipment.isReturn==1}">否</c:if>
            </td>
            <td>${deliverEquipment.sn}</td>
            <td>1231244422</td>
            <td>${deliverEquipment.deliverId.deliverWarehouseId.name}&nbsp;<span class="color-blue" onclick="chooseWarhouse()">[修改]</span></td>
            <td>${deliverEquipment.wLocaltion}</td>
            <td>24324234</td>
            <td>32</td>
        </tr>
</c:forEach>
        </tbody>
    </table>
    <div style="margin-top:20px; width: 98%; margin: 10px auto;"><span style="font-weight: bold;">说明</span></div>
    <div class="line"></div>
    <table class="nobordertable noborder" style="border: none;">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>发货说明:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.deliverDes}
            </td>
            <td class="al_r" width="20%">
                <label>附件:</label>
            </td>
            <td width="30%">
                <span class="color-blue">12312312.jpg</span>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>备件申请人:</label>
            </td>
            <td width="30%">
                中影巴可&nbsp;&nbsp;李成&nbsp;&nbsp;18087783343
            </td>
            <td class="al_r" width="20%">
                <label>服务工程师:</label>
            </td>
            <td width="30%">
                中影巴可&nbsp;&nbsp;李成&nbsp;&nbsp;18087783343
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div class="subtitle">
    <p>收货人信息</p>
    <table class="nobordertable noborder" style="border: none;">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>是否自提:</label>
            </td>
            <td colspan="3">
                <c:if test="${cbsDelinerPage.zt==1}">是</c:if>
                <c:if test="${cbsDelinerPage.zt==2}">否</c:if>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>姓名:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.userName}
            </td>
            <td class="al_r" width="20%">
                <label>电话:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.phone}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>收货地址:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.shi.territoryName}  ${cbsDelinerPage.address}
            </td>
            <td class="al_r" width="20%">
                <label>影院名称:</label>
            </td>
            <td width="30%">
                ${cbsDelinerPage.cinemaName}
            </td>
        </tr>
        <tr>
            <td class="al_r"><label>自提仓库:</label></td>
            <td colspan="3">
                ${cbsDelinerPage.warehouseId.shi.territoryName}
                &nbsp;&nbsp;
                <%--<span>北京市顺义区李桥镇XXX</span>--%>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div class="subtitle">
    <p>物流</p>
    <table class="nobordertable noborder" style="border: none;">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>发货SLA:</label>
            </td>
            <td width="30%">
                加急
            </td>
            <td class="al_r" width="20%">
                <label>提货地址:</label>
            </td>
            <td width="30%">
                无
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>预计到货时间:</label>
            </td>
            <td width="30%">
                <input class="Wdate" onclick="WdatePicker()" />
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">

            </td>
        </tr>
        <tr>
            <td class="al_r" valign="top"><label>物流发货备注:</label></td>
            <td colspan="3">
                <textarea style="width:100%; height: 60px;"></textarea>
            </td>
        </tr>
        </tbody>
    </table>
    <div style="text-align: center; margin: 10px auto;">
        <a href="#" class="easyui-linkbutton l-btn">发货</a>
    </div>
</div>
<div class="subtitle">
    <p>签收</p>
    <table class="nobordertable noborder" style="border: none;">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>签收方式:</label>
            </td>
            <td width="30%">
                <select>
                    <option>本人签收</option>
                </select>
            </td>
            <td class="al_r" width="20%">
                <label>签收时间:</label>
            </td>
            <td width="30%">
                <input class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>上传照片:</label>
            </td>
            <td width="30%">
                <input type="file" />
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">

            </td>
        </tr>
        <tr>
            <td class="al_r" valign="top"><label>签收备注:</label></td>
            <td colspan="3">
                <textarea style="width: 100%; height: 60px;"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div style="text-align: center; margin: 10px auto;">
                <a href="#" class="easyui-linkbutton l-btn">签收</a>
            </div>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>未达标原因:</label>
            </td>
            <td width="30%">
                <select>
                    <option>物流原因</option>
                </select>
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">

            </td>
        </tr>
        <tr>
            <td class="al_r" valign="top"><label>未达标备注:</label></td>
            <td colspan="3">
                <textarea style="width: 100%; height: 60px;"></textarea>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div class="subtitle">
    <p>日志</p>
    <table class="ftable">
        <tbody>
        <tr>
            <th>操作人</th>
            <th>时间</th>
            <th>描述</th>
        </tr>
        <tr>
            <td>刘xx</td>
            <td>2017-02-03</td>
            <td>发货异常：已取消发货</td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>
